﻿#region Copyright (C) Sector7 Software Studio. All rights reserved
/*******************************************************************************************
 * Creation
 *      Author:         Wolf Lai
 *      Date:           2013/6/15 星期六 21:12:08
 *      Version:        
 * Modification 
 *      Author: 
 *      Date: 
 *      Description: 
 *      Version:
 *******************************************************************************************/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sector7.Framework.EntityType;
using Sector7.Framework.DB;

namespace Sector7.Framework.DAO
{
    /// <summary>
    /// 个人信息数据访问接口
    /// </summary>
    public interface ICitizenDAO : IDAOBase<S7_Citizen>
    {
        /// <summary>
        /// 指定字段记录条数
        /// </summary>
        /// <param name="columnName">字段名</param>
        /// <param name="value">值</param>
        /// <returns></returns>
        int Count(string columnName, object value);

        /// <summary>
        /// 根据证件类型和证件号获取人员信息
        /// </summary>
        /// <param name="identityType">证件号类型ID</param>
        /// <param name="identityId">证件号</param>
        /// <returns></returns>
        S7_Citizen GetCitizenByIdentityId(int identityTypeId, string identityId);

        /// <summary>
        /// 更新个人信息
        /// </summary>
        /// <param name="citizen">个人信息</param>
        /// <returns></returns>
        int Update(S7_Citizen citizen);
    }
}
